<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="script.js">
        function createArray(value: any, count: number): any[] {
            const arr: any[] = []
            for (let index = 0; index < count; index++) {
                arr.push(value)
            }
            return arr
        }

        const arr1 = createArray(11, 3)
        const arr2 = createArray('aa', 3)
        console.log(arr1[0].toFixed(), arr2[0].split(''))
    </script>
</body>

</html>